package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.security.Key;

@SpringBootApplication
@Slf4j
//开启servlet组件
@ServletComponentScan
//开启事务
@EnableTransactionManagement
public class ReggieTakeOutApplication {

    public static void main(String[] args) {
        log.info("启动项目");
        SpringApplication.run(ReggieTakeOutApplication.class, args);
    }

}
